package com.example.videotimedemo.custom;

import android.content.Context;
import android.util.AttributeSet;

import cn.jzvd.JzvdStd;

public class JzvdStdAutoCompleteAfterFullscreen extends JzvdStd {

    public JzvdStdAutoCompleteAfterFullscreen(Context context) {
        super(context);
    }

    public JzvdStdAutoCompleteAfterFullscreen(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    @Override
    public void onAutoCompletion() {
        super.onAutoCompletion();
        if (screen == SCREEN_FULLSCREEN) {
            onStateAutoComplete();
        } else {
            super.onAutoCompletion();
        }
    }
}
